<?php

namespace app\common\model;

use think\Model;

class Config extends Model
{
    public function toArray(): array
    {
        $array = parent::toArray();
        if ($array['name'] === 'distribution') {
            $array['value'] = $array['value'] ? json_decode($array['value'], true) : '';
        }

        return $array;
    }
}